import {ApiProperty} from "@nestjs/swagger";
import {IsNotEmpty} from "class-validator";

export class LoginDto {
  @IsNotEmpty()
  @ApiProperty({description: '用户名'})
  username: string

  @IsNotEmpty()
  @ApiProperty({description: '密码'})
  password: string
}